# == Schema Information
#
# Table name: orders
#
#  id              :integer          not null, primary key
#  user_id         :integer
#  address_id      :integer
#  order_no        :string
#  amount          :integer
#  total_money     :decimal(10, 2)
#  status          :integer          default(0)
#  workflow_state  :string
#  channel_id      :integer
#  order_type      :integer          default("normal")
#  reserve_id      :integer
#  tail_pay        :decimal(10, 2)
#  created_at      :datetime         not null
#  updated_at      :datetime         not null
#  payment_at      :datetime
#  chuang_order_no :string
#  invoice_id      :integer
#

class OrderSerializer < ActiveModel::Serializer
  # attributes :id, :order_no, 
  has_many :order_items
  belongs_to :user
  has_many :address
end
